import { Http } from "../utils/http";

class Banner {
    /**
     * 获取banner图信息
     */
    static async getDataList(id) {
        return await Http.request({url: `banner/${id}`});
    }

    /**
     * 获取bannerItem信息
     */
    static async getDataInfo(id) {
        return await Http.request({url: `banner-item/${id}`});
    }
}

export {
    Banner
}